import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
  routes: [{
      path: '/',
      component: resolve => require(['@/components/view/view1.vue'], resolve),
      children: [{
          path: "index",
          component: resolve => require(['@/components/index/Index.vue'], resolve)
        },
        {
          path: "indexSem",
          component: resolve => require(['@/components/index/SEMsale/indexSem.vue'], resolve)
        },
        {
          path: "jxal",
          component: resolve => require(['@/components/jxal/jxal.vue'], resolve)
        },
        {
          path: "jxaldetail",
          component: resolve => require(['@/components/jxaldetail/jxaldetail.vue'], resolve)
        },
        {
          path: "smallWechat",
          component: resolve => require(['@/components/smallWechat/smallWechat.vue'], resolve)
        },
        {
          path: "electric",
          component: resolve => require(['@/components/electric/electric.vue'], resolve)
        },
        {
          path: "knowledge",
          component: resolve => require(['@/components/knowledge/knowledge.vue'], resolve)
        },
        {
          path: "mary",
          component: resolve => require(['@/components/mary/mary.vue'], resolve)
        },
        {
          path: "cooperate",
          component: resolve => require(['@/components/cooperate/cooperate.vue'], resolve)
        },
        {
          path: "ai",
          component: resolve => require(['@/components/AI/ai.vue'], resolve)
        },
        {
          path: "AISelect",
          component: resolve => require(['@/components/AISelect/AISelect.vue'], resolve)
        },
        {
          path: "createAiPlan",
          component: resolve => require(['@/components/createAiPlan/createAiPlan.vue'], resolve)
        },
        {
          path: "hyfaAll",
          component: resolve => require(['@/components/hyfaAll/hyfaAll.vue'], resolve)
        },
        {
          path: "jrbx",
          component: resolve => require(['@/components/jrbx/jrbx.vue'], resolve)
        },
        {
          path: "jjjd",
          component: resolve => require(['@/components/jjjd/jjjd.vue'], resolve)
        },
        {
          path: "lyzw",
          component: resolve => require(['@/components/lyzw/lyzw.vue'], resolve)
        },
        {
          path: "qcfc",
          component: resolve => require(['@/components/qcfc/qcfc.vue'], resolve)
        },
        {
          path: "searchAll",
          component: resolve => require(['@/components/searchAll/searchAll.vue'], resolve)
        },
        {
          path: "mediaSelect",
          component: resolve => require(['@/components/mediaSelect/media.vue'], resolve)
        },
        {
          path: "swhzAll",
          component: resolve => require(['@/components/swhzAll/swhzAll.vue'], resolve)
        },
        {
          path: "bigcustomer",
          component: resolve => require(['@/components/bigcustomer/bigcustomer.vue'], resolve)
        },
        {
          path: "xz",
          component: resolve => require(['@/components/xz/xz.vue'], resolve)
        },
        {
          path: "mediaIn",
          component: resolve => require(['@/components/mediaIn/mediaIn.vue'], resolve)
        },
        {
          path: "agent",
          component: resolve => require(['@/components/agent/agent.vue'], resolve)
        },
        {
          path: "about",
          component: resolve => require(['@/components/about/about.vue'], resolve)
        },
        {
          path: "luck",
          component: resolve => require(['@/components/luck/luck.vue'], resolve)
        }
      ],
      redirect: "/index"
    },
    {
      path: "/view2",
      component: resolve => require(['@/components/view/view2.vue'], resolve),
      children: [{
          path: "shortVideoDetail",
          component: resolve => require(['@/components/shortVideoDetail/shortVideoDetail.vue'], resolve)
        },
        {
          path: "hotMedia",
          component: resolve => require(['@/components/hotMedia/hotMedia.vue'], resolve)
        },
        {
          path: "appRect",
          component: resolve => require(['@/components/appRect/appRect.vue'], resolve)
        },
        {
          path: "DSPSale",
          component: resolve => require(['@/components/DSPSale/DSPSale.vue'], resolve)
        },
        {
          path: "SEMSale",
          component: resolve => require(['@/components/SEMSale/SEMSale.vue'], resolve)
        },
        {
          path: "ctrl",
          component: resolve => require(['@/components/ctrl/ctrl.vue'], resolve)
        },
        {
          path: "hotMediaNav2",
          component: resolve => require(['@/components/hotMedia/hotMediaNav2.vue'], resolve)
        }
      ]
    },
    {
      path: "/login",
      component: resolve => require(['@/components/login/login.vue'], resolve)
    },
    {
      path: "/regist",
      component: resolve => require(['@/components/regist/regist.vue'], resolve)
    },
    {
      path: "/personal",
      component: resolve => require(['@/components/personal/personal.vue'], resolve)
    },
    {
      path: "/yourai",
      component: resolve => require(['@/components/yourai/yourai.vue'], resolve)
    },
    {
      path: "/findpassword",
      component: resolve => require(['@/components/regist/findpassword.vue'], resolve)
    },
    {
      path: "/emitPlan",
      component: resolve => require(['@/components/emitPlan/emitPlan.vue'], resolve)
    },
    {
      path: '/notFound',
      component: resolve => require(['@/components/404/404.vue'], resolve)
    },
    {
      path: '/upgrade',
      component: resolve => require(['@/components/upgrade/upgrade.vue'], resolve)
    },
    {
      path: "*",
      redirect: "/notFound"
    }
  ]
})
